import request from '@/utils/request'

// 查询募资轮次列表
export function listFundRounds(query) {
  return request({
    url: '/rounds/fundRounds/list',
    method: 'get',
    params: query
  })
}

// 查询募资轮次详细
export function getFundRounds(id) {
  return request({
    url: '/rounds/fundRounds/' + id,
    method: 'get'
  })
}

// 保存募资轮次
export function saveFundRounds(data) {
  return request({
    url: '/rounds/fundRounds/save',
    method: 'post',
    data: data
  })
}

// 删除募资轮次
export function delFundRounds(id) {
  return request({
    url: '/rounds/fundRounds/' + id,
    method: 'delete'
  })
}

// 根据基金id查询募资轮次的id和名称
export function findRounds(id) {
  return request({
    url: '/rounds/fundRounds/findRounds/' + id,
    method: 'get'
  })
}

